from django.shortcuts import render

from news.models import News
from product.models import Product

def home(request):
    news_list = News.objects.all()
    products_list = Product.objects.all()
    return render(request, 'index.html', {'news_list': news_list, 'products_list': products_list})


def introduction(request):
    return render(request, 'introduction.html')
